package custom

Import Path
	github.com/K-Phoen/grabana/variable/custom (on go.dev)

Dependency Relation
	imports 3 packages, and imported by one package

Involved Source Files custom.go
Package-Level Type Names (total 3)
/* sort by: | */
Custom represents a "custom" templated variable. Builder sdk.TemplateVar func New(name string, options ...Option) *Custom
Option represents an option that can be used to configure a custom variable. func AllValue(value string) Option func Default(value string) Option func DefaultAll() Option func Hide() Option func HideLabel() Option func IncludeAll() Option func Label(label string) Option func Multiple() Option func Values(values ValuesMap) Option func New(name string, options ...Option) *Custom func github.com/K-Phoen/grabana/dashboard.VariableAsCustom(name string, options ...Option) dashboard.Option
ValuesMap represent a "label" to "value" map of options for a custom variable. func Values(values ValuesMap) Option
Package-Level Functions (total 10)
AllValue define the value used when selecting the "All" option.
Default sets the default value of the variable.
DefaultAll selects "All" values by default.
Hide ensures that the variable will not be displayed.
HideLabel ensures that this variable's label will not be displayed.
IncludeAll adds an option to allow all values to be selected.
Label sets the label of the variable.
Multiple allows several values to be selected.
New creates a new "custom" templated variable.
Values sets the possible values for the variable.
Package-Level Constants (only one)
const All = "$__all"